package com.hongli.blog.mapper;

import com.hongli.blog.entity.BugDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface Bugmapper {
    List<BugDao> SelectAllBug();

    BugDao SelectBug(@Param("bugid") int bugid);

    void InsertBug(@Param("buggrade") String buggrade, @Param("bugcontent") String bugcontent, @Param("bugcreatetime") Date bugcreatetime);

    void UpdateBugContent(BugDao bugDao);

    void DeleteBUG(@Param("bugid") int bugid);
}
